FROM eclipse-temurin:17-jdk

ENV SPRING_OUTPUT_ANSI_ENABLED=ALWAYS \
    SLEEP_TIME=0 \
    JAVA_OPTS=""

COPY --from=hengyunabc/arthas:latest /opt/arthas /opt/arthas

ADD entrypoint.sh entrypoint.sh

RUN chmod 755 entrypoint.sh

ENTRYPOINT ["./entrypoint.sh"]

RUN sed -i 's/TLSv1,//g;s/TLSv1.1,//g' /opt/java/openjdk/conf/security/java.security

COPY ./lib /lib

ADD *.jar app.jar
